package com.lixixi.tingshu.album.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.lixixi.tingshu.model.album.TrackInfo;
import com.lixixi.tingshu.model.album.TrackStat;
import com.lixixi.tingshu.query.album.TrackInfoQuery;
import com.lixixi.tingshu.vo.album.AlbumListVo;
import com.lixixi.tingshu.vo.album.AlbumTrackListVo;
import com.lixixi.tingshu.vo.album.TrackListVo;
import org.apache.ibatis.annotations.Param;

public interface TrackInfoMapper extends BaseMapper<TrackInfo> {
	Integer selectMaxOrderNumByAlbumId(@Param("albumId") Long albumId);

	IPage<TrackListVo> selectUserAlbumPage(Page<AlbumListVo> albumListVoPage, @Param("trackInfoQuery") TrackInfoQuery trackInfoQuery);

	IPage<AlbumTrackListVo> findAlbumTrackPageByAlbumId(Page<AlbumTrackListVo> objectPage, @Param("albumId") Long albumId);
}
